package com.bole.fallback;

import com.bole.data.Result;
import com.bole.data.ResultEnum;
import com.bole.dto.permission.MenuDto;
import com.bole.feign.MenuFeign;
import org.springframework.stereotype.Component;

import java.util.List;
import java.util.Map;

/**
 * @author yakamaxi
 * @version 1.0
 * @date 2020/8/12 19:33
 */
@Component
public class MenuFeignFallback implements MenuFeign {
    @Override
    public Result getMenu(Long id) {
        return Result.response(ResultEnum.FAIL).setData("熔断");
    }

    @Override
    public Result getzTree() {
        return Result.response(ResultEnum.FAIL).setData("熔断");
    }

    @Override
    public Result add(MenuDto menu) {
        return Result.response(ResultEnum.FAIL).setData("熔断");
    }

    @Override
    public Result getMenuById(Long id) {
        return Result.response(ResultEnum.FAIL).setData("熔断");
    }

    @Override
    public Result updateById(Long id, MenuDto menu) {
        return Result.response(ResultEnum.FAIL).setData("熔断");
    }

    @Override
    public Result deleteById(Long id) {
        return Result.response(ResultEnum.FAIL).setData("熔断");
    }

    @Override
    public Result getzTreeChecked(Long rid) {
        return Result.response(ResultEnum.FAIL).setData("熔断");
    }
}
